flutter transform translate

152

Container(
  color: Colors.black,
  child: Transform(
    alignment: Alignment.topRight,
    transform: Matrix4.skewY(0.3)..rotateZ(-math.pi / 12.0),
    child: Container(
      padding: const EdgeInsets.all(8.0),
      color: const Color(0xFFE8581C),
      child: const Text('Apartment for rent!'),
    ),
  ),
)
Transform.scale(  scale: 0.5,  origin: Offset(50.0, 50.0),  child: Container(    height: 100.0,    width: 100.0,    color: Colors.blue,  ),),

Comments

Submit
0 Comments